/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cgd;

import cdp.ObjetoPersistente;
import java.util.List;

/**
 *
 * @author Rodrigo
 */
public interface DAO <T extends ObjetoPersistente>{
    public void salvar(T objeto) throws Exception;
    public void excluir(T objeto) throws Exception;
    public void alterar(T objeto) throws Exception;
    public T obter(T objeto) throws Exception;
    public T obter(T objeto, long id) throws Exception;
    public List <T> obterTodos(T objeto) throws Exception;
}
